<el-card shadow="never">
  <!-- 查询区域 -->
  <div class="table-page-search-wrapper">
        <el-form :inline="true" :model="searchModel" size="small" >
          <el-form-item label="公司名称">
              <el-input v-model="searchModel.name" placeholder="公司名称"></el-input>
          </el-form-item>
          <el-form-item>
              <span style="float: left;overflow: hidden;" class="">
                  <el-button type="primary" @click="searchQuery" icon="el-icon-search">查询</el-button>
                  <el-button type="primary" @click="searchReset" icon="el-icon-refresh" style="margin-left: 8px">重置</el-button>
              </span>
          </el-form-item>
        </el-form>
    </div>
  <!-- 操作按钮区域 -->
  <div class="table-operator">
    <el-button icon="el-icon-plus" size="small" class="addBtn" type="primary" @click="handleAdd">新增</el-button>
    <el-upload ref="upload"
              :action="importExcelUrl"
               :on-change="handleImportExcel"
               :headers="tokenHeader"
               :show-file-list = "false" >
      <el-button slot="trigger" size="small" type="primary">导入</el-button>
    </el-upload>

  </div>
  <!-- 公司列表 -->
  <div class="project">
      <el-table size="small" :data="dataSource" border style="width: 100%" :header-cell-style="{background:'#eef1f6',color:'#606266'}">
          <el-table-column prop="name" width="300" label="公司名称" ></el-table-column>
          <el-table-column prop="code" label="组织机构代码" ></el-table-column>
          <el-table-column prop="contact" label="联系人" ></el-table-column>
          <el-table-column prop="phone" label="联系电话"></el-table-column>
          <el-table-column prop="address" width="300" label="公司地址" ></el-table-column>
          <el-table-column prop="receiveLimit" label="领用额度"></el-table-column>
          <el-table-column fixed="right" label="操作" width="280">
              <template slot-scope="scope">
                  <el-button @click="handleEdit(scope.row)" type="text" size="small">编辑</el-button>
<!--                  <el-popconfirm-->
<!--                    title="确定删除吗？"-->
<!--                    placement="top-start"-->
<!--                    @onConfirm="handleDelete(scope.row.pid)">-->
<!--                    <el-button  slot="reference"  type="text">删除</el-button>-->
<!--                  </el-popconfirm>-->
              </template>
          </el-table-column>
      </el-table>
      <pagination
      :total="ipagination.total"
      :page.sync="ipagination.current"
      :limit.sync="ipagination.pageSize"
      @pagination="loadData"
      ></pagination>
  </div>
  <!-- 资产信息弹窗 -->
  <company-modal ref="modalForm" @ok="modalFormOk" ></company-modal>
</el-card>
